package org.dromara.mall.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 订单主信息对象 ter_mall_order
 *
 * @author xch
 * @date 2025-06-27
 */
@Data
@TableName("ter_mall_order")
public class TerMallOrder {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private String id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 用户ID
     */
    private Long userId;



    /**
     * 订单状态(0=待发货,1=已发货,2=已完成,3=已取消)
     */
    private Integer orderStatus;

    /**
     * 收货人（冗余字段）
     */
    private String consignee;

    /**
     * 收货电话（冗余字段）
     */
    private String mobile;

    /**
     * 收货地址（冗余字段）
     */
    private String address;

    /**
     * 自提点ID
     */
    private Long pickupPointId;

    /**
     * 自提码
     */
    private String pickupCode;

    private Integer revenue;
    private Integer totalPrice;
    private Integer prepayAmount;
    private String couponId;
    private Integer couponPrice;
    private String paymentMethod;
    private String pickupPoint;
    private String refundId;
    private LocalDateTime updateTime;
    private LocalDateTime createTime;
    private Integer isCart;
}
